package com.yonyou.pmclouds.safetypatrol.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.safetypatrol.entity.SafetypatrolVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SafetypatrolMapper extends BaseMapper<SafetypatrolVO> {

    List<SafetypatrolVO> findAll(Map map);

    SafetypatrolVO findById(Map map);

    Integer findByStandardnameAndpkTenant(@Param("standardName") String standardName, @Param("pkTenant") String pkTenant);

    List<SafetypatrolVO> checkQupte(@Param("pkTenant") String pkTenant, @Param("checktypes") int... checktypes);


    Integer checkRepeat(SafetypatrolVO vo);

    int countPage(@Param("keyword") String keyword, @Param("pkTenant") String tenantId, @Param("statecode") byte stateCode);

    List<SafetypatrolVO> queryByPage(@Param("keyword") String keyword, @Param("pkTenant") String tenantId, @Param("start") Integer start, @Param("limit") Integer limit, @Param("statecode") byte statecode);


    List<SafetypatrolVO> queryByTenant(String pkTenant);
}
